package cn.edu.gzgs.common;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 分页查询结果封装类
 *
 * @author Zyf
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "分页结果对象")
public class PageResult<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "总记录数")
    private long total;

    @Schema(description = "当前页数据记录")
    private List<T> records;
} 